import mitt from "mitt";

type Events = {
  "init-socket": void;
  "init-kefu-socket": void;
  "open-result": GameTotalMo;
  "game-bet": GameBetMo;
  "update-total-result": GameTotalMo;
  "room-msg": GameHistoryMo;
  "kefu-history-success": void;
  "kefu-msg": KefuMsg;
  "kefu-msg-tip": KefuMsg;
  "kefu-msg-success": ChatContentMo;
  "update-updown-msg": void;
  "updown-join-tip": SocketMsg;
  "single-follow-tip": SocketMsg;
  "update-join-room-msg": void;
  "updown-notice": void;
  "redpack-send-success": void;
  "update-member-msg": void;
  "update-report-notice-msg": void;
  "updata-history-list": void;
  "open-result-complete": void;
  "chat-scroll-to-bottom": void;
  "login-success": void;
};

export default mitt<Events>();
